package com.nycreativity.elecreativity.entity.param.order

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal
import javax.validation.constraints.Min
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull


@ApiModel("订单添加参数")
class OrderAddParam(
    /**
     * 商品skuId
     */
    @field:NotNull(message = "商品skuId不能为空")
    @ApiModelProperty("商品skuId")
    var skuId: Long? = null,

    /**
     * 商品数量
     */
    @field:NotNull(message = "商品数量不能为空")
    @field:Min(message = "商品数量不能为负", value = 0)
    @ApiModelProperty("商品数量")
    var goodsCount: Int = 0,

    /**
     * 商品单价
     */
    @field:NotNull(message = "商品单价不能为空")
    @field:Min(message = "商品单价不能为负", value = 0)
    @ApiModelProperty("商品单价")
    var goodsPrice: BigDecimal = BigDecimal(0),

    )
